<?php

/*
 *  This file is part of Urd.
 *
 *  Urd is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 3 of the License, or
 *  (at your option) any later version.
 *  Urd is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program. See the file "COPYING". If it does not 
 *  exist, see <http://www.gnu.org/licenses/>.
 * 
 * $LastChangedDate: 2008-07-09 20:09:07 +0200 (Wed, 09 Jul 2008) $
 * $Rev: 1278 $
 * $Author: gavinspearhead $
 * $Id: admin_buttons.php 1278 2008-07-09 18:09:07Z gavinspearhead $
 */


define('ORIGINAL_PAGE', $_SERVER['PHP_SELF']);

$pathaeb = realpath(dirname(__FILE__));

require_once("$pathaeb/../functions/html_includes.php");

if (!$isadmin)
	fatal_error($LN['error_noadmin']);

class buttons_c {
	public $type; // "show" | "edit"
	public $name;
	public $url;
	public $img;
	public $id;

	function __construct ($t, $id=0, $n='', $u='', $i='')
	{
		assert(is_numeric($id) && ($t == 'show' || $t == 'edit'));
		$this->id = $id;
		$this->type = $t;
		$this->name = $n;
		$this->url = $u;
		$this->img = $i;
	}
}


